package com.mp.approvalreq.entity.common;


public class Constants {

    public static final String APPROVAL_MODULE_NAME = "Approval";


    public static final int DEFAULT_GENERATION = 4;        // 组件加上sort字段时的generation

    public static final String GROUP_ID = "id";
    public static final String GROUP_NUM = "num";


    // 红点,艾特红点，驳回红点，评论红点
    public static final String RED = "red";
    public static final String AT_RED = "atRed";
    public static final String REFUSE_RED = "refuseRed";
    public static final String COMMENT_RED = "commentRed";

    public static final String UN_READ = "unRead";
    public static final String READ = "read";


    public static final String RED_TYPE_ZERO = "0";                  // 首页红点
    public static final String RED_TYPE_ONE = "1";                  // 待我处理
    public static final String RED_TYPE_TWO = "2";                  // 我已处理
    public static final String RED_TYPE_THREE = "3";                  // 我申请待处理
    public static final String RED_TYPE_FOUR = "4";                  // 我申请已处理
    public static final String RED_TYPE_FIVE = "5";                  // 我参与待处理
    public static final String RED_TYPE_SIX = "6";                  // 我参与已处理
    public static final String RED_TYPE_SEVEN = "7";                  // 待我归档
    public static final String RED_TYPE_EIGHT = "8";                  // 我已归档

    public static final String RED_TYPE_APPROVED = "1,2";                // 我处理的
    public static final String RED_TYPE_APPLY = "3,4";                // 我申请的
    public static final String RED_TYPE_PARTICIPANT = "5,6";                // 我参与的
    public static final String RED_TYPE_CC_TIME = "7,8";                // 抄送我的

    /**
     * 推送个人状态消息:1有效,0无效
     */
    public static final int DISABLE_STATUS = 0;
    public static final int ACTIVE_STATUS = 1;


    public static final String MQ_GROUP_NAME = "MP_APPROVAL";

    // 审批消息: topic,tag,key
    public static final String MQ_APPROVAL_TOPIC = "Approval";
    public static final String MQ_TAGS_UPDATE_TEMPLATE = "UpdateTemplate";
    public static final String MQ_TAGS_DAYS_OFF_TIMES = "DaysOffTimes";
    public static final String MQ_TAGS_OUT_SIGN_INFO = "OutSignInfo";
    public static final String MQ_TAGS_FILL_OUTDOOR_ADDRESS = "FillOutdoorAddress";
    public static final String MQ_TAG_CLEAR_RED_POINT = "ClearRedPoint";
    public static final String MQ_TARS_BUSINESS_TRIP_SIGN_INFO = "BusinessTripSignInfo";
    public static final String MQ_TAG_APPROVAL_MODIFY = "ApprovalModify";
    public static final String MQ_TAG_APPROVAL_MODIFY_RELATE = "UpdateApprovalRelate";

    public static final String MQ_CHECK_IN_TOPIC = "CheckIn";
    public static final String MQ_TAGS_CONFIRM_REQUEST = "ConfirmRequest";
    public static final String MQ_TAGS_DISABLE_REQUEST = "DisableRequest";
    public static final String MQ_TAGS_COMPANY_CREATE = "CreateCompany";

    // 离职的消息:topic,tag
    public static final String MQ_TOPIC_USER = "User";
    public static final String MQ_TAGS_USER_DIMISSION = "Dimission";
    public static final String MQ_TAGS_USER_STATUS = "UserStatus";
    public static final String MQ_KEYS_APPROVAL_USER_STATUS = "ApprovalUserStatus";

    public static final String MQ_KEYS_DELETE_USER_STATUS = "DeleteUserStatus";
    // 推送的消息:topic,tag
    public static final String MQ_PUSH_TOPIC = "Push";
    public static final String MQ_PUSH_TAG_ONE = "One";

    public static final String MQ_PUSH_TAG_MANY_TO_ONE = "ManyToOne";
    // 权限消息: topic, tag
    public static final String MQ_TOPIC_AUTH = "Auth";
    public static final String MQ_TAG_AUTH_ADD = "add";

    public static final String MQ_BASE_TOPIC = "Base";
    public static final String MQ_BASE_TAG_CONTACT_STATUS = "ContactStatus";
    public static final String MQ_BASE_TAG_COMPANY_STATUS = "CompanyStatus";


    public static final String MQ_HR_TOPIC = "HR";
    public static final String MQ_TAGS_RECALCULATE_DAYS_OFF_TIME = "RecalculateDaysOffTime";
    public static final String MQ_TAGS_STAFF_APPLY_LEAVE = "staffApplyLeave";
    public static final String MQ_TAGS_DISABLE_LEAVE = "DisableLeave";
    public static final String MQ_TAGS_UPDATE_LEAVE = "UpdateLeave";

    /**
     * 进销存消息
     */
    public static final String MQ_INVENTORY_REPLACE_APPROVER = "replaceApprover";


    // "topic": "contactWorkTrends",
    //    "tag": "workTrends",
    public static final String MQ_TOPIC_APPROVAL_WORK_TRENDS = "contactWorkTrends";
    public static final String MQ_TAG_APPROVAL_WORK_TRENDS = "workTrends";

}
